home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / PROGRAMS / CH11 / 11-2-4.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-09-18  |  2.2 KB  |  75 lines

  1. VERSION 5.00
  2. Begin VB.Form frmSize 
  3.    Caption         =   "Change Size"
  4.    ClientHeight    =   2715
  5.    ClientLeft      =   1125
  6.    ClientTop       =   1485
  7.    ClientWidth     =   2355
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    PaletteMode     =   1  'UseZOrder
  19.    ScaleHeight     =   2715
  20.    ScaleWidth      =   2355
  21.    Begin VB.TextBox txtInfo 
  22.       Height          =   615
  23.       Left            =   120
  24.       TabIndex        =   4
  25.       Text            =   "Hello"
  26.       Top             =   1920
  27.       Width           =   1695
  28.    End
  29.    Begin VB.Frame fraFontSize 
  30.       Caption         =   "Font Size"
  31.       Height          =   1695
  32.       Left            =   360
  33.       TabIndex        =   0
  34.       Top             =   120
  35.       Width           =   1215
  36.       Begin VB.OptionButton opt24pt 
  37.          Caption         =   "&24"
  38.          Height          =   375
  39.          Left            =   120
  40.          TabIndex        =   3
  41.          Top             =   1200
  42.          Width           =   735
  43.       End
  44.       Begin VB.OptionButton opt18pt 
  45.          Caption         =   "1&8"
  46.          Height          =   495
  47.          Left            =   120
  48.          TabIndex        =   2
  49.          Top             =   720
  50.          Width           =   735
  51.       End
  52.       Begin VB.OptionButton opt12pt 
  53.          Caption         =   "&12"
  54.          Height          =   375
  55.          Left            =   120
  56.          TabIndex        =   1
  57.          Top             =   360
  58.          Width           =   735
  59.       End
  60.    End
  61. Attribute VB_Name = "frmSize"
  62. Attribute VB_GlobalNameSpace = False
  63. Attribute VB_Creatable = False
  64. Attribute VB_PredeclaredId = True
  65. Attribute VB_Exposed = False
  66. Private Sub opt12pt_Click()
  67.   txtInfo.Font.Size = 12
  68. End Sub
  69. Private Sub opt18pt_Click()
  70.   txtInfo.Font.Size = 18
  71. End Sub
  72. Private Sub opt24pt_Click()
  73.   txtInfo.Font.Size = 24
  74. End Sub
  75.